Skip to main content

revZipReplaceItemWithData

Type

command

Summary

Replaces the contents of an item in a zip archive with the contents of a variable.

Syntax

revZipReplaceItemWithData <archivePath>, <itemName>, <variableName>

Description

Use the revZipReplaceItemWithData command to put the contents of a variable in your LiveCode program into one of the items of an open zip archive. The archive must have first been opened with the revZipOpenArchive command.

Parameters

NameTypeDescription

archivePath

The absolute path to the zip archive to process.

itemName

The name of the item in the zip archive to replace.

variableName

The name of the variable in your program containing the data to replace with. If the revZipReplaceItemWithData command encounters an error then the result will be set to an error code beginning with "ziperr", otherwise the result will be empty.

Examples

revZipReplaceItemWithData tArchive, "myZippedItem", "tData"
revZipReplaceItemWithData the cArchive of me, "Test.txt", "tNewTest"

command: revZipOpenArchive, revZipAddItemWithData, revZipReplaceItemWithFile

Compatibility and Support

Introduced

LiveCode 2.7.3

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?